package com.druid.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "角色权限请求参数实体对象")
public class RolePermissionParam {

    @ApiModelProperty(value = "角色id")
    @NotNull
    private Integer roleId;

    @ApiModelProperty(value = "权限id")
    @NotNull
    private Integer permissionId;

    @ApiModelProperty(value = "该角色是否拥有该权限")
    @NotNull
    private boolean hasPermission;

}
